import { NgModule, ErrorHandler } from '@angular/core';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';

import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { IonicStorageModule } from '@ionic/storage';

import { Modules, Providers } from './app.imports';

@NgModule({
    declarations: [
        MyApp,
    ],
    imports: [
        Modules,
        IonicModule.forRoot(MyApp, {
            tabsHideOnSubPages: true,
            backButtonText: '',
            backButtonIcon: 'ios-arrow-back',
            mode: 'ios'
        }),
        IonicStorageModule.forRoot()
    ],
    bootstrap: [IonicApp],
    entryComponents: [
        MyApp
    ],
    providers: [
        StatusBar,
        SplashScreen,
        {provide: ErrorHandler, useClass: IonicErrorHandler},
        Providers
    ]
})
export class AppModule {}
